#pragma once

#include "Object.h"

class CPistol: public Object
{
public:
	int m_ndirection;
	int m_nanimationRate;
	int m_npistolIndex;
	int m_nframeW;
	int m_nframeH;

	float m_fscaling;
	float m_fto;

	bool m_breleaseSmock;

	CPistol(LPD3DXSPRITE, float);
	~CPistol();

	void setDirection (int idirection);
	void setRect(int moveCame);
	void loadSoucre(LPD3DXSPRITE spriteHandler);
	void Update(int deltaTime, int moveCame);
	void Render();
	void Next();

	//get method
	//
	bool IsFinish();

	//function
	void bullet();
	void bulletTank();
	void fire();
	void shells();
	void smock();
	void release();
};
